package be.rugbyclubleuven.rachel.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity
@Table(name = "ZIPF")
@IdClass(ZipCodePk.class)
public class ZipCode {

	@Id
	@Column(name = "POSTK", insertable = false, updatable = false)
	private Long code;

	@Id
	@Column(name = "POSTI", insertable = false, updatable = false)
	private Long index;

	@Column(name = "WOONP")
	private String gemeente;

	public Long getCode() {
		return code;
	}

	public Long getIndex() {
		return index;
	}

	public String getGemeente() {
		return gemeente;
	}

}